import com.itheima.service.AccountService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test1 {
    public static void main(String[] args) {
        //加载配置文件
        ApplicationContext act=new ClassPathXmlApplicationContext("applicationContext.xml");
        AccountService accountService = (AccountService) act.getBean("accountService");
       accountService.save();

    }
}
